//
//  NSDictionary+DD.m
//  need
//
//  Created by ac hu on 2017/7/7.
//  Copyright © 2017年 oc. All rights reserved.
//

#import "NSDictionary+DD.h"

@implementation NSDictionary(DD)

//字典转json字符串
-(NSString*)dictionaryToJson
{
    NSError *parseError = nil;
    NSData *jsonData = [NSJSONSerialization dataWithJSONObject:self options:NSJSONWritingPrettyPrinted error:&parseError];
    return [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
    
}
@end
